package com.yonyougov.devops.cruxcisupport.attachment;

import com.yonyougov.devops.fwc.core.controller.CrudController;
import com.yonyougov.devops.fwc.core.service.BaseService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigInteger;

@Api(tags = "提测附件")
@RestController
@RequestMapping("/api/v2/attachment")
public class AttachmentController extends CrudController<AttachmentEntity, BigInteger> {

    private AttachmentService attachmentService;

    @Override
    public BaseService<AttachmentEntity, BigInteger> getService() {
        return attachmentService;
    }

    public AttachmentController(AttachmentService attachmentService) {
        this.attachmentService = attachmentService;
    }
    //<!--用户自定义代码结束-->
}
